/*
 * BaseCajaDAO.java
 *
 * Created on 13 de septiembre de 2007, 11:07 AM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.radar.despachos.caja.dao;

import com.src.computec.radar.base.dao.exception.DAOException;
import com.src.computec.radar.despachos.caja.dto.CajaDto;
import com.src.computec.radar.despachos.despacho.dto.DespachoDto;
import java.util.Hashtable;
import java.util.List;


/**
 *
 * @author aocampo
 */
public interface BaseCajaDAO {
    
    public CajaDto getCajaByPrimaryKey(CajaDto dto) throws DAOException;
    
    public String insertCaja(CajaDto dto, String ldapUser) throws DAOException;
    
    public int llenarCaja(CajaDto dto, String codigoBarrasInicial, String codigoBarrasFinal, boolean recuperacion, String ldapUser, Hashtable inconsistenciasHashTable) throws DAOException;
    
    public int llenarCaja(CajaDto dto, List listListado, boolean recuperacion, String ldapUser, Hashtable inconsistenciasHashTable) throws DAOException;
    
    public void vaciarCaja(List listDetallesLabel, CajaDto dto) throws DAOException;
    
    public List getNodosByCaja(CajaDto dto) throws DAOException;
    
    public List getDetallesLabel(CajaDto dto) throws DAOException;
    
    public List getCajasByDespacho(DespachoDto dto) throws DAOException;
    
    public boolean hasCloseCaja(CajaDto dto) throws DAOException;
    
    public void cambiarEstadoCaja(CajaDto dto, String ldapUser) throws DAOException;
    
    public int validarCaja(CajaDto dto, List listListado, Hashtable resultadoHashTable) throws DAOException;
    
    // <editor-fold defaultstate="collapsed" desc="method disabled: transferCajas()">
    /*public void transferCajas(String codigoDespacho, List listCajasSeleccion) throws DAOException;*/
    // </editor-fold>
    
    public void deleteCaja(CajaDto dto) throws DAOException;
}